package com.relife.thinkcode.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author 唐前程
 * @date 2018/9/24 2:15
 **/
@Controller
public class Hellow {
        @RequestMapping("/hellow")
        public ModelAndView hellow(){
            ModelAndView mv = new ModelAndView();
            mv.addObject("message","hellow world");
            mv.setViewName("test/hellow");
            return mv;
        }

}
